{extends file="../acp.html"}

{block name="title"}{$head_title}{/block}
{block name="content"}
<div class="tabs clearfix">
    <a href="javascript:;" class="active tabs_a fl" data-origin="addserviceproviders" data-index="1">基本信息</a>
    <!--<a href="javascript:;" class="tabs_a fl" data-origin="addserviceproviders" data-index="2">服务及服务商简介</a>-->
    <!--<a href="javascript:;" class="tabs_a fl" data-origin="addserviceproviders" data-index="3">服务内容</a>-->
</div>
<!-- end tabs -->
<div class="tabs-content" data-origin="addserviceproviders">
    <form method="post" id="form_addServiceProviders" enctype="multipart/form-data">
        <!--<div class="tc hide" data-index="3">-->
            <!--<div class="formitems inline">-->
                <!--<label class="fi-name">&lt;!&ndash; <span class="colorRed">*</span> &ndash;&gt;服务内容：</label>-->
                <!--<div class="form-controls">-->
                    <!--<script id="service_content" name="service_content" type="text/plain"></script>-->
                    <!--<span class="fi-help-text error"></span>-->
                <!--</div>-->
            <!--</div>-->
            <!--<div class="formitems inline">-->
                <!--<label class="fi-name">&lt;!&ndash; <span class="colorRed">*</span> &ndash;&gt;收费说明：</label>-->
                <!--<div class="form-controls">-->
                    <!--<script id="charge" name="charge" type="text/plain" ></script>-->
                    <!--<span class="fi-help-text error"></span>-->
                <!--</div>-->
            <!--</div>-->
            <!--<div class="formactions mgl180">-->
                <!--<button class="btn btn-blue"><i class="gicon-ok white"></i>提交</button>-->
            <!--</div>-->
        <!--</div>-->
        <!-- end 详细描述 -->
        <!--<div class="tc hide" data-index="2">-->
            <!--<div class="formitems inline">-->
                <!--<label class="fi-name">服务简介：</label>-->
                <!--<div class="form-controls">-->
                    <!--<textarea name="service_describe" id="service_describe">{$item.item_desc}</textarea>-->
                    <!--<span class="fi-help-text"></span>-->
                <!--</div>-->
            <!--</div>-->


            <!--<div class="formitems inline">-->
                <!--<label class="fi-name">&lt;!&ndash; <span class="colorRed">*</span> &ndash;&gt;服务商简介：</label>-->
                <!--<div class="form-controls">-->
                    <!--<script id="service_providers_describe" name="service_providers_describe" type="text/plain"></script>-->
                    <!--<span class="fi-help-text error"></span>-->
                <!--</div>-->
            <!--</div>-->
            <!--<div class="formactions mgl180">-->
                <!--<span class="btn btn-blue jump" data-value='3'>下一步</span>-->
            <!--</div>-->
        <!--</div>-->

        <!-- end 规格属性 -->
        <div class="tc" data-index="1">

            <div class="formitems inline">
                <label class="fi-name">
                    <span class="colorRed">*</span>用户帐号：</label>
                <div class="form-controls">
                    <input type="text" placeholder="请输入用户帐号" class="xlarge" name="username">
                    <span class="fi-help-text error"></span>
                </div>
            </div>

            <div class="formitems inline">
                <label class="fi-name">
                    <span class="colorRed">*</span>密码：</label>
                <div class="form-controls">
                    <input type="text" placeholder="请输入用户密码" class="xlarge" name="password">
                    <span class="fi-help-text error">新帐号必填,已有帐号则不填．</span>
                </div>
            </div>

            <div class="formitems inline">
                <label class="fi-name"><span class="colorRed">*</span>职位：</label>
                <div class="form-controls">
                    <input type="text" placeholder="请输入职位" class="large" name="position" id="position">
                    <span class="fi-help-text hide">新帐号必填,已有帐号则不填．</span>
                </div>
            </div>

            <div class="formitems inline">
                <label class="fi-name">性别：</label>
                <div class="form-controls">
                    <div class="radio-group">
                        <label><input type="radio" name="sex" value="1" >男</label>
                        <label><input type="radio" name="sex" value="2" checked>女</label>
                    </div>
                    <span class="fi-help-text error"></span>
                </div>
            </div>

            <!-- 服务商LOGO -->
            {upload_image_widget($logo_pic)}

            <!-- 海报 -->
            {upload_image_widget($poster_pic)}

            <div class="formitems inline">
                <label class="fi-name"><span class="colorRed">*</span>联系人：</label>
                <div class="form-controls">
                    <input type="text" placeholder="请输入联系人" class="large" name="user_name" id="user_name">
                    <span class="fi-help-text hide"></span>
                </div>
            </div>

            <div class="formitems inline">
                <label class="fi-name"><span class="colorRed">*</span>领域：</label>
                <div class="form-controls">
                    {foreach from = $domain_list item =domain}
                    <input type="checkbox" class="checkbox" value="{$domain.type_id}" name="domain[]">{$domain.type_name}
                    {/foreach}
                    <span class="fi-help-text hide"></span>
                </div>

            </div>

            <div class="formitems inline">
                <label class="fi-name">地区选择：</label>
                <div class="form-controls">
                    <select name="province_id" id="province_id">
                        <option value="">--选择省份--</option>
                        {foreach from=$province_list item=item}
                        <option value="{$item.province_id}">{$item.province_name}</option>
                        {/foreach}
                    </select>
                    <select name="city_id" id="city_id">
                        <option value="">--选择城市--</option>
                        {foreach from=$city_list item=item}
                        <option value="{$item.city_id}">{$item.city_name}</option>
                        {/foreach}
                    </select>
                    <select name="area_id" id="area_id">
                        <option value="">--选择地区--</option>
                        {foreach from=$area_list item=item}
                        <option value="{$item.area_id}" >{$item.area_name}</option>
                        {/foreach}
                    </select>
                </div>
            </div>

            <div class="formitems inline">
                <label class="fi-name">
                    <span class="colorRed">*</span>地址：</label>
                <div class="form-controls">
                    <input type="text" placeholder="请输入地址" class="xxlarge" name="address">
                    <span class="fi-help-text error"></span>
                </div>
            </div>

            <div class="formitems inline">
                <label class="fi-name">推荐：</label>
                <div class="form-controls">
                    <div class="radio-group">
                        <label><input type="radio" name="is_recommend" value="0" >否</label>
                        <label><input type="radio" name="is_recommend" value="1" checked>是</label>
                    </div>
                    <span class="fi-help-text error"></span>
                </div>
            </div>

            <div class="formitems inline">
                <label class="fi-name">排序号：</label>
                <div class="form-controls">
                    <input type="text" placeholder="请输入排序号" class="small" name="serial">
                    <span class="fi-help-text error"></span>
                </div>
            </div>

            <div class="formitems inline">
                <label class="fi-name"><!-- <span class="colorRed">*</span> -->导师简介：</label>
                <div class="form-controls">
                    <script id="service_providers_describe" name="service_providers_describe" type="text/plain"></script>
                    <span class="fi-help-text error"></span>
                </div>
            </div>

            <div class="formactions mgl180">
                <input type="hidden" name="action" value="add">
                <button class="btn btn-blue" id="my_btn"><i class="gicon-ok white"></i>提交</button>
            </div>
            <!--<div class="formactions mgl180">-->
                <!--<input type="hidden" name="action" value="add">-->
                <!--<span class="btn btn-blue jump" data-value='2'>提交</span>-->
            <!--</div>-->
        </div>

        <!-- end 基本信息 -->
    </form>
</div>
{/block}
{block name="css"}
{literal}
<style>
    #jpops .fi-name {
        width: 65px;
    }

    #jpops .form-controls {
        margin-left: 75px;
    }

    #j-item-extend li {
        margin-bottom: 10px;
    }

    .edit_item_tip {
        font-size: 18px;
        color: #a0a0a0;
        background-color: inherit;
        text-decoration: none;
        margin: 20px 180px;
    }
</style>
{/literal}
{/block}
{block name="js"}
<script type="text/javascript" charset="utf-8" src="__UE__/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__UE__/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="__UE__/lang/zh-cn/zh-cn.js"></script>
<script src="__ACPJS__/AcpServiceProviders/linkage.js?version={$version}"></script>
<script src="__ACPJS__/AcpServiceProviders/service_validate.js?version={$version}"></script>
<script src='/Public/Js/common/upload_image.js?version={$version}'></script>
<script>


//    UE.getEditor('service_content',{
//        initialFrameWidth : 600,
//        initialFrameHeight: 400,
//        autoHeightEnabled: false,
//        autoFloatEnabled:false
//    });
    UE.getEditor('service_providers_describe',{
        initialFrameWidth : 600,
        initialFrameHeight: 400,
        autoHeightEnabled: false,
        autoFloatEnabled:false
    });
//    UE.getEditor('charge',{
//        initialFrameWidth : 600,
//        initialFrameHeight: 400,
//        autoHeightEnabled: false,
//        autoFloatEnabled:false
//    });

//    var flag = 1;
//    upload_batch_image('pic');
//
//    $(function(){
//        // 根据商品类型获取商品属性
//        $('.jump').click(function(){
//            var index = $(this).data('value');
//            acp.switchTabByDataIndex(index,"addserviceproviders");
//        })
//    });
</script>
{/block}
